package Test1_1;

public class Test1_1_1 {
    public static void main(String[] args) {
        Father father=new Father();
        Son son=new Son();
        father=son;
        Father father1=new Son();
        father.method1();
    }
}

class Father{
    public Father(){
        System.out.println("Father");
    }
    public static void method1(){
        System.out.println("method Father");
    }
}

class Son extends Father{
    public Son(){
        super();
        System.out.println("Son");
    }
    public static void method1(){
        System.out.println("method Son");
    }
}
